<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        /* 10 + 1 + 10000= 10011   */

        .con div {
            color: red  !important;
        }
        /* 10 + 1+10 = 21  */

        .con div.box {
            color: green;
        }
        /* 10 + 10 = 20  */

        .con .box {
            color: blue;
        }

        /*100*/
        #div1 {
            color: indianred;
        }
    </style>
</head>

<body>


    <div class="con">
        <!--内联的权重是1000-->
        <div class="box" id="div1" style="color:aqua">哈哈哈哈哈</div>
    </div>


</body>

</html>